package com.zxu.test.ipc.client;

import android.view.View;

import androidx.databinding.ObservableField;
import androidx.lifecycle.MutableLiveData;

import com.zxu.test.base.BaseViewModel;
import com.zxu.test.studyapp.R;
import com.zxu.test.util.DoubleClickUtils;
import com.zxu.test.util.Event;

public class ClientViewModel extends BaseViewModel {

    public final ObservableField<Event<String>> btnEvent = new ObservableField<>();


    public ClientViewModel() {
    }
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btClient:
                if (!DoubleClickUtils.isFastDoubleClick(R.id.btClient))
                    btnEvent.set(new Event<>(""));
                break;
        }
    }

}
